# -*- mode: makefile -*-

#PLATFORM = linux

INCLUDE	= $(YISC_DIR)/include
LIB	= $(YISC_DIR)/lib

# commands
# ifeq ($(PLATFORM),linux)
#     CXX     = g++-3.4
# else
#     CXX     = g++
# endif
CXX     = g++
CXXFLAGS= -I$(INCLUDE)

LD      = $(CXX)
LDFLAGS = 

AR	= ar -cr

RM      = rm
RMFLAGS = -f

CP	= cp
CPFLAGS = -rf

MV	= mv
MVFLAGS = -f

# variables for actions
COMPILE = $(CXX) $(CXXFLAGS) -c
LINK    = $(LD) $(LDFLAGS)
REMOVE  = $(RM) $(RMFLAGS)
COPY	= $(CP) $(CPFLAGS)
MAKE_DEPMAP = $(CXX) -MM $(SOURCES)

EXT_HDR = .hpp
EXT_SRC = .cpp
EXT_OBJ = .o
# ifeq ($(PLATFORM),linux)
#     EXT_EXE =
# else
#     EXT_EXE = .exe
# endif

#HEADERS = $(wildcard $(INCLUDE)/http/server/*$(EXT_HDR))
SOURCES = $(wildcard *$(EXT_SRC))
OBJECTS = $(SOURCES:$(EXT_SRC)=$(EXT_OBJ))

UNIT_TEST_ITEM = $(wildcard *.t)
UNIT_TESTS = $(UNIT_TEST_ITEM:.t=.test)

